package com.shop.member.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.member.dao.MemberDAO;
import com.shop.member.vo.MemberVO;

@Service
public class MemberServiceImpl implements MemberService {

	@Autowired
	private MemberDAO dao;
	
	@Override
	public List<MemberVO.MemberItem> listMember(int current_page,
												int list_row_no,
												String src_type,
												String src_keyword) {
		return dao.listMember(current_page,
								list_row_no,
								src_type,
								src_keyword);
	}
	@Override
	public int getTotalMemberCount(String src_type, String src_keyword) {
		return dao.getTotalMemberCount(src_type, src_keyword);
	}
	@Override
	public int isUserCnt(String id , String pw) {
		
		return dao.isUserCnt(id, pw);
	}
	
	@Override
	public int addMember(MemberVO.MemberItem memberItem) {
		// TODO Auto-generated method stub
		return dao.addMember(memberItem);
	}
	
	@Override
	public MemberVO.MemberItem getMember(String seq) {
		return dao.getMember(seq);
	}

	@Override
	public int updateMember(MemberVO.MemberItem memberItem) {
		return dao.updateMember(memberItem);
	}
	
	@Override
	public int deleteMember(String seq) {
		return dao.deleteMember(seq);
	}
}
